package com.hanamaki.oop.demo02;

/*积分类*/

public class Integral {

    String cardType;

    int cardScore;

    public void isTrue() {
        if ((this.cardType.equals("金卡") && this.cardScore > 1000)
                || (this.cardType.equals("普卡") && this.cardScore > 500)) {
            System.out.println("积分：" + this.cardScore + ",卡类型：" + this.cardType);
            this.cardScore += 500;
            System.out.print("回馈积分500分" + "\n" + "现在的积分为：" + this.cardScore);

        } else {
            System.out.println("尚未满足！");
        }
    }

}
